# coding=utf8
__author__ = 'lijian'

import thread
import time
import logging
import uplink
import os


def _reboot():
    logging.warn("system will reboot!")
    time.sleep(2)
    # monitor.uplink.disconnect()
    time.sleep(2)
    os.system("reboot")


# 重启
def fn_1(dataUnit):
    logging.warn("do process reboot")
    thread.start_new_thread(_reboot, tuple());
    return True


#GPRS重连
def fn_2(dataUnit):
    return True